<template>
  <view class="add-result-container px-[30rpx] py-[20rpx] box-border">
    <view
      class="h-[652rpx] module-part flex flex-col justify-center items-center"
    >
      <view class="mt-[30rpx]">
        <image
          src="@/static/images/result-icon.png"
          mode="aspectFit"
          class="w-[206rpx] h-[204rpx]"
        />
      </view>
      <view class="text-center mt-[48rpx]">
        <view class="text-[#333333] text-[34rpx] pb-[18rpx]">待审核</view>
        <template v-if="originMark == 1">
          <view class="text-[#999999] text-[28rpx]">
            <view>（2024）渝0107民初3636号证据提交成功</view>
            <view>待法院审核通知</view>
          </view>
        </template>
        <template v-if="originMark == 2">
          <view class="text-[#999999] text-[28rpx]">
            <view>巡回审判申请提交成功，待法院审核通知</view>
          </view>
        </template>
      </view>
    </view>
    <view class="pt-[40rpx] box-border">
      <button
        class="bg-[#1E92F0] color-white text-[30rpx] rounded-[48rpx] h-[98rpx] leading-[98rpx]"
        hover-class="none"
        @click="onBackHome"
      >
        返回首页
      </button>
    </view>
    <view class="pt-[40rpx] box-border">
      <button
        class="bg-[#F5F9FF] color-[#1E92F0] border-[1rpx] border-solid border-[#1E92F0] text-[30rpx] rounded-[48rpx] h-[98rpx] leading-[98rpx]"
        hover-class="none"
        @click="scanCaseDetail"
      >
        查看案件
      </button>
    </view>
  </view>
</template>

<script setup lang="ts">
import { onLoad } from "@dcloudio/uni-app";
import { ref, reactive, onMounted } from "vue";

const originMark = ref(2); // 2巡回审判申请 1 添加证据
// 初始化加载
onMounted(() => {});

onLoad((options) => {
  if (options && options.mark) {
    originMark.value = options.mark;
    if (options.mark == 1) {
      uni.setNavigationBarTitle({
        title: "添加证据",
      });
    } else {
      uni.setNavigationBarTitle({
        title: "巡回审判申请",
      });
    }
  }
});
// 返回首页
const onBackHome = () => {
  uni.switchTab({ url: "/pages/home/index" });
};
// 查看案件
const scanCaseDetail = () => {
  uni.navigateTo({
    url: "/subPages/home/case/detail/index",
  });
};
</script>

<style lang="scss" scoped>
.add-result-container {
}
</style>
